Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make json ArgumentType accept anything but undefined #545

Merged
merged 2 commits into from
May 5, 2020

Conversation

alcuadrado
Copy link
Member

We accidentally introduced a small breaking change in 1.3.0. Before that version was released, arguments passed to Buidler tasks weren't validated. The only thing Buidler knew how to do was parsing strings into those values.

Starting with Buidler 1.3.0, we introduced runtime type validations when running tasks programmatically. This validation logic was off for the json type, as some values that could be parsed from strings into jsons, were accepted by the validation strategy.

This PR fixes this, by accepting anything but undefined as a valid json argument.

Thanks @gitpusha for reporting this issue.

@alcuadrado alcuadrado merged commit 2dca433 into development May 5, 2020
@alcuadrado alcuadrado deleted the types-json-bug-fix branch May 5, 2020 13:32
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant